﻿using System;
using Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
using Microsoft.VisualStudio.TestTools.UITest.Input;
using Microsoft.VisualStudio.TestTools.UITest.Extension;
using Microsoft.VisualStudio.TestTools.UITesting.WindowsRuntimeControls;


namespace TestProjectWindowsPhone
{
    /// <summary>
    /// Summary description for CodedUITest4
    /// </summary>
    [CodedUITest]
    public class CodedUITest4
    {
        public CodedUITest4()
        {
        }

        [TestMethod]
        public void CodedUITestMethod4()
        {
            // To generate code for this test, select "Generate Code for Coded UI Test" from the shortcut menu and select one of the menu items.
            XamlWindow myAppWindow = XamlWindow.Launch("{1D76A7E8-1C36-446E-A739-D5688CD4676D}:App:1d76a7e8-1c36-446e-a739-d5688cd4676d_1fadp56eckdn0!App");
            try
            {
                Gesture.Tap(this.UIMap.UIItemWindow.UILogpåButton);
            }
            catch (Exception)
            {
                
                //throw;
            }
            Gesture.Tap(this.UIMap.UIEvents4AllWindow.UIBegivenhederHyperlink);
            Gesture.Tap(this.UIMap.UIEvents4AllWindow.UIEventDetailsList.UIMobileClientDataModeListItem);
            Gesture.Tap(this.UIMap.UIEvents4AllWindow.UIItemList.UITilmeldListItem.UITilmeldButton);
        }

        public UIMap UIMap
        {
            get
            {
                if ((this.map == null))
                {
                    this.map = new UIMap();
                }

                return this.map;
            }
        }

        private UIMap map;
    }
}
